<extend name="Bt/register_back_base"/>
<block name="content">
    <div class="context" style="position: relative;height:900px">
        <div class="ctPdding ">
            <div class="ct_header"><i></i>用户注册</div>
            <hr />
            <div class="regContainer">
                <div class="regItme">
                    <ul>
                        <li class="itmeNoe">
                            <span class="noRegLogo">1</span>
                            <span class="color6">填写账户信息</span>
                        </li>
                        <li class="itmeTwo itmeBorder">
                            <span class="regLogo">2</span>
                            <span class="color6">激活账户</span>
                        </li>
                        <li>
                            <span class="noRegLogo">3</span>
                            <span class="color6">完成</span>
                        </li>
                    </ul>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="regGroupContainers">
                <div class="userContainer marginTop50 color6 center">
                    <p class="size28  paddingTB5">请登录 <a href="#" class="color00" data-role="reSend" id="Email" target="_blank">{$email}</a> 查看邮件，并激活帐户。 </p>
                    <p class="size14 paddingTB5">如果您在收件夹没有收到，请查看一下您的垃圾邮箱,<a href="#" class="color00" id="reSend">重新发送</a></p>
                    <!--<p class="size14 paddingTB5">-->
                        <!--<a href="#" class="color00" data-role="reSend">-->
                            <!--{:L('_ACCOUNT_DEAR_NOT_ACTIVE_4_')}-->
                        <!--</a>-->
                    <!--</p>-->
                    <p class="size14 paddingTB5">有任何疑问，或需要帮助，请联系我们：<a href="mailto:admin@51bangtu.com" class="color6">admin@51bangtu.com</a></p>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="javascriptPageLeveCode">
    <script type="text/javascript">
        $(function(){
            var email = "{$email}";
            //相应的邮箱登陆网址
            var hash={
                'qq.com': 'http://mail.qq.com',
                'gmail.com': 'http://mail.google.com',
                'sina.com': 'http://mail.sina.com.cn',
                '163.com': 'http://mail.163.com',
                '126.com': 'http://mail.126.com',
                'yeah.net': 'http://www.yeah.net/',
                'sohu.com': 'http://mail.sohu.com/',
                'tom.com': 'http://mail.tom.com/',
                'sogou.com': 'http://mail.sogou.com/',
                '139.com': 'http://mail.10086.cn/',
                'hotmail.com': 'http://www.hotmail.com',
                'live.com': 'http://login.live.com/',
                'live.cn': 'http://login.live.cn/',
                'live.com.cn': 'http://login.live.com.cn',
                '189.com': 'http://webmail16.189.cn/webmail/',
                'yahoo.com.cn': 'http://mail.cn.yahoo.com/',
                'yahoo.cn': 'http://mail.cn.yahoo.com/',
                'eyou.com': 'http://www.eyou.com/',
                '21cn.com': 'http://mail.21cn.com/',
                '188.com': 'http://www.188.com/',
                'foxmail.coom': 'http://www.foxmail.com'
            };
            var url = email.split('@')[1];
            for (var j in hash){
                console.log(hash);
                $('#Email').attr('href',hash[url]);
            }

            var logoNav = $(".logoNavRight").find("a");

            logoNav.hover(function(){
                $(this).addClass("active");
            },function(){
                $(this).removeClass("active");
            });
            //重新发送
            $('#reSend').click(function () {
                $.post("{:U('ucenter/member/reSend')}", {}, function (res) {
                    if(res.status){
                        medal.init({
                            msg:res.info,
                            type:'success'
                        });
                        toast.success(res.info);
                    }else{
                        medal.init({
                            msg:res.info,
                            type:'error'
                        });
                    }
                })
            });
        });
    </script>
</block>